package com.litchi.utils;

 import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;

/**
 * 自定义ListView，可设置滚动到顶端时的操作
 * @author acer
 *
 */
@SuppressLint("NewApi")
public class MyGridView extends GridViewWithHeaderAndFooter{
 
	@Override 
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {      
        int expandSpec = MeasureSpec.makeMeasureSpec( 
                Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); 
        super.onMeasure(widthMeasureSpec, expandSpec); 
    } 
	
	public MyGridView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}
}
